package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.marktotop.entity.MenuRole;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author marktotop
 * @since 2021-05-23
 */
public interface MenuRoleMapper extends BaseMapper<MenuRole> {

    /**
     * 更新角色菜单
     *
     * @param rid  角色id
     * @param mids 菜单id
     * @return 返回影响行数
     */
    Integer insertRecords(@Param("rid") Integer rid, @Param("mids") Integer[] mids);

}
